package ift605.tp3.b.resolvers;

import ift605.tp3.utils.equations.ConstantEq;
import ift605.tp3.utils.equations.MultiplicativeEq;
import ift605.tp3.utils.equations.PowEq;
import ift605.tp3.utils.equations.SummativeEq;
import ift605.tp3.utils.equations.VariableEq;

public class ResolverFactory
{
    public static String getAgentPath(String type)
    {
        if (type.equals(ConstantEq.class.getName()))
        {
            return ConstantResolverAgent.class.getName();
        }
        if (type.equals(PowEq.class.getName()) || type.equals(VariableEq.class.getName()))
        {
            return PowResolverAgent.class.getName();
        }
        if (type.equals(MultiplicativeEq.class.getName()))
        {
            return MultiplicativeResolverAgent.class.getName();
        }
        if (type.equals(SummativeEq.class.getName()))
        {
            return SummativeResolverAgent.class.getName();
        }
        return null;
    }
}
